import lombok.Data;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author ：quziwei
 * @date ：Created in 2020/6/9 3:17 下午
 * @description：密码加密
 */
public class passwordEncoder {

//    @Autowired
    private BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();

    @Test
    public void test(){
        System.out.println(passwordEncoder.encode("e10adc3949ba59abbe56e057f20f883e"));
    }
}
